

class DateInfo {
  List<Data>? data;
  int ?code;
  String? msg;
  int? time;
  int? usage;
  String? log_id;
  DateInfo({this.data, this.code, this.msg,this.time,this.usage,this.log_id});
  factory DateInfo.fromJson(Map<String, dynamic> json) {
    return DateInfo(
      data: json['data'] != null ? (json['data'] as List).map((i) => Data.fromJson(i)).toList() : null,
      code: json['code'],
      msg: json['msg'],
      time:json['time'],
      usage:json['usage'],
      log_id: json['log_id']
    );
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['time']=this.time;
    data['usage']=this.usage;
    data['log_id']=this.log_id;
    return data;
  }
}

class Data {
  String  ?id;
  String? title;
  String ?date;
  int ? year;
  int ? month;
  int ? day;
  String ?monthday;
  String ?desc;


  Data({this.id,this.title, this.date,
    this.year, this.month, this.day, this.monthday, this.desc});

  factory Data.fromJson(Map<String, dynamic> json) {
    return Data(
      id:json['id'],
      title: json['title'],
      date: json['date'],
      year: json['year'],
      month: json['month'],
      day: json['day'],
      monthday: json['monthday'],
      desc: json['desc'],
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['date'] = this.date;
    data['year'] = this.year;
    data['month'] = this.month;
    data['day'] = this.day;
    data['monthday'] = this.monthday;
    data['desc'] = this.desc;
    return data;
  }
}